<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1>Personnes</h1>
<s:iterator value="listPersonnes">
	 <s:property value="id" /> : <s:property value="nom" /> <s:property value="prenom" /> 
	 <s:url id="removeUrl" action="remove">
		<s:param name="id" value="id" />
	</s:url>
	<s:a href="%{removeUrl}">Remove</s:a>
	
	 <br>
</s:iterator>
<hr>
<s:form action="saveUser" validate="false">
    <s:textfield id="id" name="personne.id" cssStyle="display:none"/>
	<s:textfield id="nom" label="Nom" name="personne.nom"/>
	<s:textfield id="prenom" label="Prenom" name="personne.prenom"/>
	<s:submit/>
</s:form>

</body>
</html>
